﻿package com.dg.gaming.api.common.msg{
	public class Msg {
		//========================================================================
		// Declare DATA structures
		//========================================================================

		/** Header token of the data class GameList. */
		public static const GAME_LIST:String="game_list";

		/** Header token of the data class Game. */
		public static const GAME:String="game";

		/** Header token of the data class UserList. */
		public static const USER_LIST:String="user_list";

		/** Header token of the data class User. */
		public static const USER:String="user";

		/** Header token of the data class TableList. */
		public static const TABLE_LIST:String="table_list";

		/** Header token of the data class Table. */
		public static const TABLE:String="table";

		/** Header token of the data class Table. */
		public static const MODEL:String="model";

		/** Header token of the data class PlayerList. */
		public static const PLAYER_LIST:String="player_list";

		/** Header token of the data class Player. */
		public static const PLAYER:String="player";

		//========================================================================
		// Declare Commands
		//========================================================================

		/** Header token of a CommAdminConnect communications object. */
		public static const ADMIN_CONNECT:String="admin_connect";

		/** Header token of a CommAdminGameMessage communications object. */
		public static const ADMIN_GAME_MESSAGE:String="admin_game_message";

		/** Header token of a CommAdminDataMessage communications object. */
		public static const ADMIN_DATA_MESSAGE:String="admin_data_message";

		/** Header token of a CommAdminServerProperties communications object. */
		public static const ADMIN_SERVER_PROPERTIES:String="admin_server_properties";

		/** Header token of a CommAdminIconData communications object. */
		public static const ADMIN_ICON_DATA:String="admin_icon_data";

		/** Header token of a CommAdminClientData communications object. */
		public static const ADMIN_CLIENT_DATA:String="admin_client_data";

		/** Header token of a CommChatGame communications object. */
		public static const CHAT_GAME:String="chat_game";

		/** Header token of a CommChatPrivate communications object. */
		public static const CHAT_PRIVATE:String="chat_private";

		/** Header token of a CommChatTable communications object. */
		public static const CHAT_TABLE:String="chat_table";

		/** Header token of a CommConnect communications object. */
		public static const GAME_CONNECT:String="game_connect";

		/** Header token of a CommMasterServerConnect communications object. */
		public static const MASTER_SERVER_CONNECT:String="master_server_connect";

		/** Header token of a CommMasterServerMesssage communications object. */
		public static const MASTER_SERVER_MESSAGE:String="master_server_message";

		/** Header token of a CommControllerProperty communications object. */
		public static const CONTROLLER_PROPERTY:String="controller_prop";

		/** Header token of a CommControllerProperty communications object. */
		public static const CONTROLLER_OBJECT:String="controller_obj";

		/** Header token of a CommDisconnect communications object. */
		public static const DISCONNECT:String="disconnect";

		/** Header token of a CommError communications object. */
		public static const ERROR:String="error";

		/** Header token of a CommExitTable communications object. */
		public static const EXIT_TABLE:String="exit_table";

		/** Header token of a CommGameOver communications object. */
		public static const GAME_OVER:String="game_over";

		/** Header token of a CommInvite communications object. */
		public static const INVITE:String="invite";

		public static const JOIN_TABLE:String="join_table";
		public static const CONNECT_TABLE:String="connect_table";

		/** Header token of a CommNewTable object. */
		public static const NEW_TABLE:String="new_table";

		/** Header token of a CommNextPlayer object. */
		public static const NEXT_PLAYER:String="next_player";

		/** Header token of a CommOfferDraw communications object. */
		public static const OFFER_DRAW:String="offer_draw";

		/** Header token of a CommPlayerState communications object. */
		public static const PLAYER_STATE:String="player_state";

		/** Header token of a CommReadyToStart communications object. */
		public static const READY_TO_START:String="ready_to_start";

		/** Header token of a CommReadyToStart communications object. */
		public static const REQUEST_DATA:String="request_data";

		/** Header token of a CommServerProperties communications object. */
		public static const SERVER_PROPERTIES:String="server_properties";

		/** Header token of a CommSitDown communications object. */
		public static const SIT_DOWN:String="sit_down";

		/** Header token of a CommStandUp communications object. */
		public static const STAND_UP:String="stand_up";

		/** Header token of a CommStartGame communications object. */
		public static const START_GAME:String="start_game";

		/** Header token of a CommTableProperty communications object. */
		public static const TABLE_PROPERTY:String="table_property";

		/** Header token of a CommTestConnection communication object. */
		public static const ADMIN_TEST_CONNECTION:String="test_connection";

		//========================================================================
		// Delcare some properties
		//========================================================================

		/** Minimum number of user. */
		public static const PROP_PLAYERS:String="players";


	}
}